﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TechTree.Stalk.Roots.Globalization.Interfaces
{
    /// <summary>
    /// Defines the implementation of a source of dictionary for translation of keys.
    /// </summary>
    public interface ISourceDictionary
    {
        /// <summary>
        /// Returns the text read out from the dictionary identified by the informed key.
        /// </summary>
        /// <param name="key_">Text Identifier</param>
        /// <returns>The text contained in the dictionary.</returns>
        string GetText(string key_);

        /// <summary>
        /// Returns the text read out from the dictionary identified by the informed key and culture.
        /// </summary>
        /// <param name="key_">Text Identifier</param>
        /// <param name="cultureInfo_">Culture-specific for search in the dictionary.</param>
        /// <returns>The text contained in the dictionary.</returns>
        string GetText(string key_, CultureInfo cultureInfo_);
    }
}
